<%@ page import="DOMAIN.Context" %>


<html>
<head>
<title>Editer contexte</title>
 <link rel="stylesheet" href="style.css">
</head>
<body>	

<div id="topNav" >
<%@ include file="menu.jsp" %>	
</div>
<div id="content"  >
<h2 ><span>&Eacute;diter un </span>contexte</h2>
 <div id="leftContent">
	<% 
		Context c = ((Context)request.getAttribute("Context"));
		if(c==null)
		{
	 %>

	<span class="error">Aucun contexte</span>
	<%
	}
	else
	{ %>

	<form name="firstForm" method="post" action="DetailContext?id=<%= c.GetId() %>"  >
    <fieldset>
	<label>Nom </label><input type="text" name="name" value="<%= c.GetName() %>" >
	</fieldset>
	<input type=submit value=modifier >
	</form>
	<% } %>
    </div>
    <div id="rightContent">
    <h3>Action</h3>    
    <p>
    <ul>
    <% if(c!=null) {%><li>
    <a href="DetailContext?id=<%= c.GetId() %>" >Annuler</a></li> 
    <%}%>
    <li><a href="ListContext" >Retour liste</a></li>
    </ul>
    </p>
    </div>
    </div>
</body>
</html>
